package com.view;

import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

@ManagedBean(name = "imgBean")
@ApplicationScoped
public class ImagemBean {
	
	//private EventoFotoRN eventoFotoRN = new EventoFotoRN();
	
	//public StreamedContent getImage() {
		//FacesContext fc = FacesContext.getCurrentInstance();
		
		//String id = fc.getExternalContext().getRequestParameterMap().get("photo_id");
		//byte[] photoData = eventoFotoRN.localizaEventoFoto(Integer.parseInt(id)).getPhotoData();
		//return new DefaultStreamedContent(new ByteArrayInputStream(photoData));
	//}
}
